package com.lsfb.signsys.login;

/**
 * Created by zgscwjm on 2018/3/16.
 */

import com.lsfb.signsys.BasePresenter;
import com.lsfb.signsys.BaseView;

/**
 * 视图 和 Presenter 层 的约定方法
 * 定义契约接口,用来统一管理view与Presenter的所有接口,使得view与Presenter中有那些功能一目了然
 */
public interface LoginContract {

    interface Presenter extends BasePresenter {
        void login(String username, String password);
        void forget();
    }

    interface View extends BaseView<Presenter> {

        void showLoad();

        void endLoad();

        void showMessage(String msg);

        void showMainActive();

        void showForgetPwdActive();

    }
}
